package drds.global_transaction.resource_manager.model;

public enum IndexType
{
	primary_key(0), normal(1), unique(2), fulltext(3);

	public static IndexType valueOf(int i)
	{
		for (IndexType indexType : values())
		{
			if (indexType.value() == i)
			{
				return indexType;
			}
		}
		throw new IllegalArgumentException("Invalid IndexType:" + i);
	}

	private int i;

	IndexType(int i)
	{
		this.i = i;
	}

	public int value()
	{
		return this.i;
	}
}